//
//  studyReportCell.m
//  doubleEduStudents
//
//  Created by 盛洋 on 2021/1/11.
//  Copyright © 2021 shengYang. All rights reserved.
//

#import "studyReportCell.h"

@implementation studyReportCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [self.contentView insertSubview:self.back_img atIndex:0];
    _top_lab.font = AutoLabFont2;
    _bottom_lab.font = AutoLabFont3;
}

-(void)setModel:(StudyReportModel *)model{
    _model = model;
    _top_lab.text = [NSString stringWithFormat:@"%@",model.name];
    _bottom_lab.text = [NSString stringWithFormat:@"学习报告周期：%@-%@",model.startTime,model.endTime];
    [_left_img sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@",model.photo]] placeholderImage:DefaultImg];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
